package io.renren.modules.sys.vo;

import com.baomidou.mybatisplus.annotations.TableId;
import io.renren.common.utils.excel.annotation.ExcelColumn;
import io.renren.common.utils.excel.annotation.ExcelInfo;
import io.renren.common.validator.group.AddGroup;
import io.renren.modules.sys.entity.OrdersEntity;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * Created By zhangyufei on 2018/11/6
 */
@ExcelInfo(sheetName = "对账单" , fileName = "对账单")
public class OrdersDownVO{

    /**
     * 产品名称
     */
    @ExcelColumn(value = "产品名称" , sort = 3)
    private String productName;

    /**
     * 材质
     */
    @ExcelColumn(value = "材质" , sort = 5)
    private String material;
    /**
     * 型号
     */
    @ExcelColumn(value = "型号" , sort = 6)
    private String model;


    /**
     * 编号
     */
    @ExcelColumn(value = "产品编号" , sort = 4)
    private String code;

    /**
     * 供应商
     */
    @ExcelColumn(value = "供应商" , sort = 2)
    private String supplierName;


    /**
     * 采购商
     */
    @ExcelColumn(value = "采购商" , sort = 8)
    private String shopName;

    /**
     * 下单人
     */
    @ExcelColumn(value = "业务员" , sort = 9)
    private String userName;

    /**
     * 数量
     */
    @ExcelColumn(value = "购买数量" , sort = 10)
    private Integer number;
    /**
     * 单位
     */
    @ExcelColumn(value = "单位" , sort = 11)
    private String unit;

    /**
     * 单价
     */
    @ExcelColumn(value = "购买价格" , sort = 12)
    private BigDecimal price;

    /**
     * 总价
     */
    @ExcelColumn(value = "总价" , sort = 13)
    private BigDecimal totalPrice;


    /**
     * 订单号
     */
    @ExcelColumn(value = "订单号" , sort = 1)
    private String orderNum;

    /**
     * 订单类型 出货单 进货单
     */
    private String type;
    /**
     * 运费
     */
    @ExcelColumn(value = "运费" , sort = 14)
    private BigDecimal logisticsFee;
    /**
     * 备注
     */
    @ExcelColumn(value = "备注" , sort = 15)
    private String remark;
    /**
     * 创建时间
     */
    @ExcelColumn(value = "下单时间" , sort = 16)
    private String createTime;

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getMaterial() {
        return material;
    }

    public void setMaterial(String material) {
        this.material = material;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getTotalPrice() {
        BigDecimal b1 = new BigDecimal(number);
        return b1.multiply(price);
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public BigDecimal getLogisticsFee() {
        return logisticsFee;
    }

    public void setLogisticsFee(BigDecimal logisticsFee) {
        this.logisticsFee = logisticsFee;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
}
